package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/9/12 0012
 **/
@Data
@ApiModel("工单客服组对象")
public class WorkTeamVo {
    @ApiModelProperty(value = "客服组ID，新增不必传，修改必传")
    private Long id;

    @NotBlank(message = "客服组名称不能为空")
    @Length(max = 20, message = "客服组名称限制 20 个字符以内")
    @ApiModelProperty(value = "客服组名称", required = true)
    private String name;

    @ApiModelProperty(value = "客服人员ID", example = "0")
    private Long empId;

    @NotNull(message = "负载数不能为空")
    @NumberPattern(regexp = "^[1-9]\\d{0,3}$", required = true, message = "负载数必须 >0，且位数 <=4 位长度的正整数")
    @ApiModelProperty(value = "负载数", required = true, example = "10")
    private Integer loadNum;

    @NotNull(message = "客服组状态不能为空")
    @ApiModelProperty(value = "状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean status;

    @ApiModelProperty(value = "客服组人员对象")
    private List<WorkTeamEmpVo> teamEmps;

    @ApiModelProperty(value = "删除客服组人员ID对象集合")
    private List<Long> delTeamEmpIds;
}
